package com.feeyo.groundservice.base_util

/**
 *作者：QLH on 2024-10-29
 *描述：
 */

/**请求成功或失败回调**/
interface SuccessOrFailCallback {
    fun success()
    fun fail()
}


interface SuccessCallback {
    /**针对协程**/
    suspend fun onSuccess(){}
    fun success(){}
}

interface SuccessCallbackWithData {
    /**针对协程**/
    suspend fun onSuccess(data: Any){}
    fun success(data: Any){}
}

interface CallbackWithData<T> {
    /**针对协程**/
    suspend fun onSuccess(data: T){}
    fun success(data: T){}
}